package org.dromara.commission.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.commission.domain.LzshDocumentUpload;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 上传与下载附件业务对象 lzsh_document_upload
 *
 * @author Lion Li
 * @date 2024-08-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = LzshDocumentUpload.class, reverseConvertGenerate = false)
public class LzshDocumentUploadBo extends BaseEntity {

    /**
     * 序号
     */
    @NotNull(message = "序号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * URL
     */
    @NotNull(message = "URL不能为空", groups = { EditGroup.class })
    private String url;

    /**
     * ossId
     */
    @NotNull(message = "ossId不能为空", groups = { EditGroup.class })
    private Long ossId;

    /**
     * 文件名
     */
    @NotBlank(message = "文件名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String documentName;

    /**
     * 文件格式
     */
    @NotBlank(message = "文件格式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String documentType;

    /**
     * 文件大小
     */
    @NotNull(message = "文件大小不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long documentSize;

    /**
     * 下载人数
     */
    @NotNull(message = "下载人数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer downloads;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
